Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix piped TBC input with 3D chroma decoders #390

Merged
merged 2 commits into from
Dec 30, 2019

Conversation

atsampson
Copy link
Collaborator

Two fixes to SourceField:

  • Fill dummy fields correctly with black, rather than with a nonsense value; apparently I forgot this was a QByteArray.

  • Don't load field 1 from the input TBC when creating dummy fields - this meant that piped input didn't work with ntsc3d/transform3d.

These are QByteArrays, so using the fill method won't do the right thing
when we're trying to fill with a 16-bit value.
SourceField::loadFields used to load field 1 then fill it with black
when it needed a dummy black field. This doesn't work when input is from
a pipe (because it would need to seek), so just resize the field data to
the right size instead.
@atsampson atsampson added bug ld-decode-tools An issue only affecting the ld-decode-tools labels Dec 30, 2019
@simoninns simoninns merged commit 12b8944 into happycube:rev7 Dec 30, 2019
@atsampson atsampson deleted the blackfields branch December 30, 2019 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ld-decode-tools An issue only affecting the ld-decode-tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants